Applying the Difference Matte
The following procedure provides a basic overview of how to apply this effect.
To apply the Difference Matte: - Select a motion footage layer as the source layer.
- Find a frame in the source layer that consists only of background.
- Save this background frame as an image file; then import it into After Effects and add it to the composition. This is the difference layer. For more information, see "Exporting a single frame of a composition" in the After Effects Help. Make sure that the duration of the difference layer is at least as long as that of the source layer.
Note: If there is no full-background frame in the shot, you may be able to assemble the full background by combining parts of several frames in After Effects or Adobe Photoshop. For example, you can use the Photoshop clone stamp tool to take a sample of the background in one frame, and then paint the sample over part of the background in another frame. - Turn off the display of the difference layer by clicking the Video switch in the Timeline window.
- Make sure that the original source layer is still selected, and then choose Effect > Keying > Difference Matte.
- In the Effect Controls window, choose Final Output or Matte Only from the View menu. Use the Matte Only view to check for holes in the transparency. To fill undesired holes after you complete the keying process, see Matte Choker (Pro only).
- Select the background file from the Difference Layer menu.
- If the difference layer is not the same size as the source layer, choose one of the following controls from the If Layer Sizes Differ menu:
- Center places the difference layer in the center of the source layer. If the difference layer is smaller than the source layer, the rest of the layer is filled with black.
- Stretch to Fit stretches or shrinks the difference layer to the size of the source layer, but it may distort background images.
- Adjust the Matching Tolerance slider to specify the amount of transparency based on how closely colors must match between the layers. Lower values produce less transparency; higher values produce more.
- Adjust the Matching Softness slider to soften the edges between transparent and opaque areas. Higher values make matched pixels more transparent, but do not increase the number of matching pixels.
- If there are still extraneous pixels in the matte, adjust the Blur Before Difference slider. This option suppresses noise by slightly blurring both layers before making the comparison. Note that the blurring occurs only for comparison and does not blur final output.
- Before closing the Effect Controls window, make sure that you have selected Final Output from the View menu to ensure that After Effects renders the transparency.
|